nl.justobjects.pushlet.util
Class Rand
java.lang.Object
nl.justobjects.pushlet.util.Rand
public class Rand
- extends java.lang.Object
Randomizing routines.
- Version:
- $Id: Rand.java,v 1.4 2007/12/07 12:57:40 justb Exp $
- Author:
- Just van den Broecke
|
Constructor Summary |
Rand()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Rand
public Rand()
randomChar
public static char randomChar()
randomVowel
public static char randomVowel()
randomNonVowel
public static char randomNonVowel()
randomTempDir
public static java.io.File randomTempDir()
throws java.lang.Exception
- Throws:
java.lang.Exception
randomTempFile
public static java.io.File randomTempFile()
throws java.lang.Exception
- Throws:
java.lang.Exception
randomBinaryFile
public static java.io.File randomBinaryFile(int aSize)
throws java.lang.Exception
- Throws:
java.lang.Exception
randomTextFile
public static java.io.File randomTextFile(int aSize)
throws java.lang.Exception
- Throws:
java.lang.Exception
randomBytes
public static byte[] randomBytes(int aSize)
randomBlob
public static byte[] randomBlob(int aSize)
randomByte
public static byte randomByte()
randomDouble
public static double randomDouble()
randomInt
public static int randomInt()
randomInt
public static int randomInt(int min,
int max)
randomLong
public static long randomLong()
randomLong
public static long randomLong(long min,
long max)
randomName
public static java.lang.String randomName(int aLength)
randomSleep
public static void randomSleep(long min,
long max)
randomString
public static java.lang.String randomString(int aLength)
randomString
public static java.lang.String randomString()